package com.rh.bmw4s.adapter;

import android.content.Context;
import android.widget.TextView;

import com.rh.bmw4s.R;
import com.rh.bmw4s.bean.CategoryUsedBean;

/**
 * Created by Administrator on 2017/9/29.
 */

public class CategoryUsedAdapter extends ListBaseAdapter<CategoryUsedBean> {
    private Context context;
    public CategoryUsedAdapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_category_used;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        CategoryUsedBean bean = getDataList().get(position);
        TextView tvConfirm=holder.getView(R.id.tv_confirm);
        tvConfirm.setText(bean.getCategoryname());
    }
}
